﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GroupThreeMESProject.Entity
{
    /// <summary>
    /// 调度任务表
    /// </summary>
    public class SchedulingTasks
    {
        //调度任务id
        public int scheduling_tasks_id { get; set; }
        //调度编号  CJ_+编号
        [StringLength(50)]
        public string? dispatch_number { get; set; }
        //调度类型id
        public int scheduling_type_id {  get; set; }
        //调度信息
        [StringLength(200)]
        public string? scheduling_information { get; set; }
        //库位号
        public string? LocationNo {  get; set; }
        //移动数量
        public int moves_number {  get; set; }
        //优先级
        public int priority {  get; set; }
        //任务状态  0待执行 1执行中 2已完成 3已关闭
        public int task_status { get; set; } = 0;
        //超时      flase否，true是
        public bool time_out { get; set; } = false;
        //创建时间
        public DateTime createtime { get; set; } = DateTime.Now;
        //需求时间
        public DateTime requiredtime { get; set; } = DateTime.Now.AddHours(25);
        //开始时间
        public DateTime? starttime { get; set; }
        //完成时间
        public DateTime? completiontime { get; set; }
    }
}
